<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/views/global/taglibs.jsp"%>
<!doctype html>
<html>
<head>
	<base href="<%=basePath %>"/>
	<meta charset="UTF-8">
	<title>test</title>
</head>
<body>
	<form id="submitForm" method="post">
		<input type="hidden" name="userName" value="tianlg1"/>
		
	</form>
	<button type="button" data-event="test">open dialog</button>
	
<%@include file="/views/global/scripts.jsp" %>
<script type="text/javascript">
$(document).ready(function(){
	$('button[data-event=test]').on('click', function () {
		$("#submitForm").goAjax({
			url:"user/userNotExists",
			semantic:false,
			data:{},
			success: function(jsonData) {
				alert(JSON.stringify(jsonData));
			}
		});
	});
})
</script>
</body>
</html>
